package wx

type ErrorResult struct {
	Errcode int    `json:"errcode"`
	Errmsg  string `json:"errmsg"`
}

type WxUser struct {
	Subscribe  int    `json:"subscribe"` // 是否关注了公众号
	Openid     string `json:"openid"`
	Unionid    string `json:"unionid"`
	Nickname   string `json:"nickname"`
	Sex        int    `json:"sex"`
	Headimgurl string `json:"headimgurl"`
	Province   string `json:"province"`
	City       string `json:"city"`
}

type WxCard struct {
	CardType   string     `json:"card_type"`
	LeastCost  int64      `json:"least_cost"`
	ReduceCost int64      `json:"reduce_cost"`
	Cash       WxCardCash `json:"cash"`
}

type WxCardCash struct {
	LeastCost  int64 `json:"least_cost"`
	ReduceCost int64 `json:"reduce_cost"`
}

type WxCoupon struct {
	Code       string `json:"code"`
	CardId     string `json:"cardId"`
	CardType   string `json:"cardType"`
	LeastCost  int64  `json:"leastCost"`
	ReduceCost int64  `json:"reduceCost"`
}

type WxShippingItem struct {
	TrackingNo     string                `json:"tracking_no"`
	ExpressCompany string                `json:"express_company"`
	ItemDesc       string                `json:"item_desc"`
	Contact        WxShippingItemContact `json:"contact"`
}

type WxShippingItemContact struct {
	ConsignorContact string `json:"consignor_contact"`
	ReceiverContact  string `json:"receiver_contact"`
}

type WxTransferDetail struct {
	OutTradeNo string `json:"outTradeNo"`
	Amount     int64  `json:"amount"`
	Remark     string `json:"remark"`
	OpenId     string `json:"openId"`
	UserName   string `json:"userName"`
}
